package com.sh.data.engine.domain.common.loader;

import java.net.URL;
import java.net.URLClassLoader;

/**
 * @Author: zigui.zdf @Date: 2021/12/28 17:57:02 @Description:
 */
public class CustomerUrlClassLoader extends URLClassLoader {
    private static final URL[] init = new URL[]{};

    public CustomerUrlClassLoader() {
        super(init);
    }

    public CustomerUrlClassLoader(URL[] urls) {
        super(urls);
    }

    public void addJar(URL url) {
        this.addURL(url);
    }

    /**
     * 加载class文件
     *
     * @param url
     */
    public void addClass(URL url) {
        super.addURL(url);
    }
}
